ZhurnalyWiki to TiddlyWiki Conversion

zhurnaly 1st January 2023 at 7:37pm

Notes on how to convert the ZhurnalyWiki to TiddlyWiki ... for additional details see also HTML Oddmuse to TiddlyWiki Conversion (*.prl Perl code) and Oddmuse Creole Markup Conversion to TiddlyWiki

via HTML conversion

(this approach worked rather well, since TiddlyWiki is pretty good about accepting HTML markup)

  • mass-export Oddmuse ZhurnalyWiki files as "static" HTML files
  • pre-process each individual HTML file:
    • replace _ in file name with (space)
    • make the first line of each file say title: followed by the file name and a newline
    • delete the HTML header stuff down to and including <div class="content browse"><p>
    • delete the HTML footer stuff to the end starting with </div><div class="wrapper close">
    • delete all </p>
    • fix external links like <a class="url http outside" href="URL">label</a>
    • fix internal links like <a class="local" href="URL">Wiki Page Name</a>
    • do other conversion such as <strong>...</strong> or <em>...</em> as desired (see HTML Oddmuse to TiddlyWiki Conversion)
  • replace .html with .tid at the end of each file name

then drag-and-drop into an empty TiddlyWiki to import!

  • up to ~2,000 *.tid files seem to work at one time – much more than that gets flakey
  • select the converted *.tid files in Finder, click and drag onto the empty TiddlyWiki, and WAIT for the green bar to appear!

via raw Creole markup conversion

(this approach didn't work very well, so it was abandoned – there were too many special cases to handle for tables and other Oddmuse/Creole features)

  • mass-export Oddmuse ZhurnalyWiki files in "raw" format (text file with Oddmuse markup visible)
  • pre-process each file
    • replace _ in file name with (space)
    • make the first line of each file say title: followed by the file name
    • apply "Conversion Rules" to file contents
    • append .tid to each file name
  • create a new empty TiddlyWiki file on http://tiddlyhost.com
  • drag-and-drop the *.tid files into the new TiddlyWiki file
  • save!